package com.yuelao.mongo;

import org.springframework.data.mongodb.repository.MongoRepository;


public interface MongoInfoRepository extends MongoRepository<MongoInfo, String>{
    /**
     * 扩展方法名必须按findBy格式命名
     * 否则将会报错
     * @param dbName
     * @return
     */
    MongoInfo findByDbName(String dbName);

    MongoInfo findByType(Integer type);
}
